package com.jinzhi.jzweb.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.jinzhi.common.base.CoreServiceImpl;
import com.jinzhi.jzweb.dao.CoustuQuestionsAnswersDao;
import com.jinzhi.jzweb.domain.CoustuQuestionsAnswersDO;
import com.jinzhi.jzweb.service.CoustuQuestionsAnswersService;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 * <pre>
 * 学生课程问答信息表
 * </pre>
 * <small> 2020-07-01 17:59:38 | lance</small>
 */
@Service
public class CoustuQuestionsAnswersServiceImpl extends CoreServiceImpl<CoustuQuestionsAnswersDao, CoustuQuestionsAnswersDO> implements CoustuQuestionsAnswersService {

    @Override
    public Page<CoustuQuestionsAnswersDO> selectListPage(int current, int number, Map map) {

        // 新建分页
        Page<CoustuQuestionsAnswersDO> page = new Page<CoustuQuestionsAnswersDO>(current, number);
        return page.setRecords(this.baseMapper.dyGetList(page,map));
    }

    @Override
    public Page<CoustuQuestionsAnswersDO> selectMyListPage(int current, int number, Map map) {

        // 新建分页
        Page<CoustuQuestionsAnswersDO> page = new Page<CoustuQuestionsAnswersDO>(current, number);
        return page.setRecords(this.baseMapper.dyGetMyList(page,map));
    }
}
